export const wxml = (bcSrc, qrCode) => {
  return `
  <view class="container" >
      <image class="bc-img" src="` + bcSrc + `"></image>
      <image class="qrcode-img" src="` + qrCode + `"></image>
  </view>
  `
}


export const style = (height, width) => {
  return `
  {
    "container": {
      "width": ` + width + `,
      "height": ` + height + `,
      "backgroundColor": "#fff"
    },
    "bcImg": {
      "width": ` + width + `,
      "height": ` + height + `,
      "position": "absolute"
    },
    "qrcodeImg": {
      "width": 150,
      "height": 150,
      "position": "relative",
      "top": ` + (height - 200) + `,
      "left": ` + ((width - 150) >> 1) + `,
      "borderRadius": 10
    }
  }
  `
}